<div ng-init = "active = 'addAccount'" class = "p20">
    <!--    <style>
            .ui[class*="left floated"].button, .ui[class*="left floated"].buttons {
                margin-left: 10px;
            }
        </style>
        <div class = "perW90 bc mt20 clearfix">
            <button class = "ui left floated button red">新账号添加</button>
            <button class = "ui left floated button ml20">账号管理</button>
        </div>
        <div>
            <div class = "mt50">
                <form class = "ui form bc" style = "width:400px;">
                    <div class = "field">
                        <label>用户姓名</label>
                        <input type = "text" name = "用户姓名" placeholder = "用户姓名">
                    </div>
                    <div class = "field">
                        <label>密码</label>
                        <input type = "text" name = "密码" placeholder = "密码">
                    </div>
                    <button class = "ui button red">提交</button>
                    <button class = "ui button">重置</button>
                </form>
            </div>
        </div>-->
    <div class = "ui top attached tabular menu">
        <a class = "item" ng-click = "active = 'addAccount'" ng-class = "{active : active == 'addAccount',item:true}">
        添加账号
        </a>
        <a class = "item" ng-click = "active = 'manageAccount'" ng-class = "{active : active == 'manageAccount',item:true}">
        管理账号
        </a>
    </div>
    <div class = "ui bottom attached segment">
        <div ng-show = "active == 'addAccount'">
            <form class = "ui form bc" style = "width:400px;">
                <div class = "field">
                    <label>用户姓名</label>
                    <input type = "text" name = "用户姓名" placeholder = "用户姓名" ng-model = "newAccountName">
                </div>
                <div class = "field">
                    <label>密码</label>
                    <input type = "text" name = "密码" placeholder = "密码" ng-model = "newAccountPwd">
                </div>
                <button class = "ui button red" ng-click = "createNewAccount()">提交</button>
                <button class = "ui button" ng-click = "reset()">重置</button>
                <b class = "red" ng-show = "errInfo">{{errInfo}}</b>
            </form>
        </div>
        <div ng-show = "active == 'manageAccount'">
            账号管理
        </div>
    </div>
</div>